﻿using System.Linq;
using System.ServiceModel.DomainServices.Hosting;
using Microsoft.ServiceModel.DomainServices.LinqToSql;
using TicketReservationSystemDataLayer;

namespace SilverlightApplicationReservations.Web
{
    // TODO: Create methods containing your application logic.
    [EnableClientAccess()]
    public class DomainServiceGetUpcomingEvents : LinqToSqlDomainService<TicketReservationSystemDataContext>
    {
        public IQueryable<Event> GetUpcomingEvents()
        {
            return this.DataContext.Events;
           // return EventDAO.GetAllUpcomingEvents(this.DataContext);
        }
    }
}


